//import 'package:fluwx/fluwx.dart' as fluwx;
//
//
//import 'package:flutter/material.dart';
//import 'package:flutter_screenutil/flutter_screenutil.dart';
//import 'package:flutter_spinkit/flutter_spinkit.dart';
//import 'package:mall/constant/string.dart';
//import 'package:mall/entity/order_detail_entity.dart';
//import 'package:mall/service/mine_service.dart';
//import 'package:mall/utils/toast_util.dart';
//import 'package:mall/widgets/divider_line.dart';
//import 'package:mall/widgets/empty_view.dart';
//import 'package:mall/widgets/item_text.dart';
//
//class WxLoginDetail extends StatefulWidget {
//  @override
//  _WxLoginDetailState createState() => _OrderDetailState();
//}
//
//class _WxLoginDetailState extends State<WxLoginDetail> {
//  MineService _mineService = MineService();
//  OrderDetailEntity _orderDetailEntity;
//  Future _orderDetailFuture;
//  var action;
//  var parameters;
//
//  @override
//  void initState() {
//    super.initState();
//    fluwx.weChatResponseEventHandler.distinct((a, b) => a == b).listen((res) {
//      if (res is fluwx.WeChatAuthResponse) {
//        int errCode = res.errCode;
//        MyLogUtil.d('微信登录返回值：ErrCode :$errCode  code:${res.code}');
//        if (errCode == 0) {
//          String code = res.code;
//          //把微信登录返回的code传给后台，剩下的事就交给后台处理
//          _presenter.getWeChatAccessToken(code);
//          showToast("用户同意授权成功");
//        } else if (errCode == -4) {
//          showToast("用户拒绝授权");
//        } else if (errCode == -2) {
//          showToast("用户取消授权");
//        }
//      }
//    });
//  }
//
//  @override
//  Widget build(BuildContext context) {
//    return Scaffold(
//      appBar: AppBar(
//        title: Text(Strings.MINE_ORDER_DETAIL),
//        centerTitle: true,
//      ),
//      body: FutureBuilder(
//          future: _orderDetailFuture,
//          builder: (BuildContext context, AsyncSnapshot asyncSnapshot) {
//            switch (asyncSnapshot.connectionState) {
//              case ConnectionState.none:
//              case ConnectionState.waiting:
//                return Container(
//                  child: Center(
//                    child: SpinKitFoldingCube(
//                      size: 40.0,
//                      color: Colors.deepOrangeAccent,
//                    ),
//                  ),
//                );
//              default:
//                if (asyncSnapshot.hasError) {
//                  return Container(
//                    height: double.infinity,
//                    child: EmptyView(),
//                  );
//                } else {
//                  return _contentView();
//                }
//            }
//          }),
//    );
//  }
//
//
//
//}
